/**
 * @description 辅导员
 */
class Instructor {
  classManage() {
    console.log('班级管理');
  }
  attendanceCount() {
    console.log('考勤统计');
  }
}

/**
 * @description 导师
 */
class Tutor {
  professionTeach() {
    console.log('专业教学');
  }

  studyHelp() {
    console.log('学业辅导');
  }
}

class StudentWork {
  // 教学工作
  studyWork(tutur: Tutor) {
    tutur.professionTeach()
    tutur.studyHelp()
  }

  // 生活辅导
  lifeWork(instructor: Instructor) {
    instructor.attendanceCount();
    instructor.classManage()
  }
}

const studentWork = new StudentWork()
const instructor = new Instructor()
const tutor = new Tutor()
studentWork.lifeWork(instructor)
studentWork.studyWork(tutor)